d4ae9085f2cfaded243f2dba6d30ea7dfa887d89,sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java,ReportPublisher,uploadMultiPartReport,#File#String#,168
Before Change
}
if (responseCode == 403) {
// SONAR-4397 Details are in response content
throw new IllegalStateException(request.body());
}
throw new IllegalStateException(format("Fail to execute request [code=%s, url=%s]: %s", responseCode, url, request.body()));
}
long stopTime = System.currentTimeMillis();
LOG.info("Analysis reports sent to server in " + (stopTime - startTime) + "ms");
After Change
request.basic(serverClient.getLogin(), serverClient.getPassword());
request.part("report", null, "application/octet-stream", report);
if (!request.ok()) {
throw serverClient.handleHttpException(url.toString(), request.code(), request.body(), null);
}
long stopTime = System.currentTimeMillis();
LOG.info("Analysis reports sent to server in " + (stopTime - startTime) + "ms");